<template>
  <el-input :value="inputValue" :placeholder="placeholder" @input="handleInput" />

</template>

<script>

export default {
  name: 'InputSearch',
  props: {
    pageCode: {
      type: String,
      required: false,
      default: ''
    },
    clickEvent: {
      type: Function,
      required: false,
      default: null
    }
  },
  data() {
    return {
      functionCode: 'query'
    }
  },
  methods: {
    handleClick() {
      if (this.clickEvent) {
        this.clickEvent()
      } else {
        // TODO:此处嵌套层次有点变态,待寻找优雅的实现方式
        this.$parent.$parent.$parent.$parent.$parent.$parent.$parent.handleQuery()
      }
    }
  }
}
</script>

<style scoped>
  .main-report_button{
    float: left;
    margin-right: 10px;
  }

</style>
